import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

// 1. 定义（路由）组件。
// 可以从其他文件 import 进来
import home from './components/home/home'
import calendar from '../../components/mobile/calendar/calendar'
import assistHome from './components/customer/assistHome.vue'
import customer from './components/customer/customer.vue'
import customerDetails from './components/customer/customerDetails'
import customerDetailsHome from './components/customer/customerDetailsHome'
import customerDetailsTracing from './components/customer/customerDetailsTracing'
import customerExTableDetails from './components/customer/ylyn/customerExTableDetails'
import newCustomerExDetails from './components/customer/ylyn/newCustomerExDetails'
import updateCustomerExDetails from './components/customer/ylyn/updateCustomerExDetails'
import newCustomer from './components/customer/newCustomer'
import updateCustomer from './components/customer/updateCustomer'
import discovery from './components/discovery/discovery'
import salesRank from './components/discovery/salesRank'
import userListForBatch from './components/discovery/userListForBatch'
import mine from './components/mine/mine'
import lessonTable from './components/discovery/lessonTable'
import poStudentStatus from './components/discovery/poStudentStatus'
import poCustomerStatus from './components/discovery/poCustomerStatus'
import poMemberStatusList from './components/discovery/poMemberStatusList'
import marketingList from './components/discovery/marketingList'
import memberStatus from './components/discovery/memberStatus'
import sysManage from '../../components/mobile/admin/sysManage'
import AIManage from '../../components/mobile/admin/AIManage'
import performanceManage from '../../components/mobile/admin/performanceManage'
import roleManage from '../../components/mobile/admin/roleManage'
import dataMarketingManage from '../../components/mobile/admin/dataMarketingManage'
import dataMemberManage from '../../components/mobile/admin/dataMemberManage'
import dataManage from '../../components/mobile/admin/dataManage'
import userManage from '../../components/mobile/admin/userManage'
import elementManage from '../../components/mobile/admin/elementManage'
import elementManageHtml from '../../components/mobile/admin/elementManageHtml'
import elementManageMul from '../../components/mobile/admin/elementManageMul'
import lessonManage from '../../components/mobile/admin/elementManage'
import selfManage from '../../components/mobile/admin/selfManage'
import selfUpdate from '../../components/mobile/admin/selfUpdate'
import selfPwdChange from '../../components/mobile/admin/selfPwdChange'
import listOfValueManage from '../../components/mobile/admin/listOfValueManage'
import roleNew from '../../components/mobile/admin/roleNew'
import userNew from '../../components/mobile/admin/userNew'
import elementNew from '../../components/mobile/admin/elementNew'
import elementUpdate from '../../components/mobile/admin/elementUpdate'
import elementUpdateHtml from '../../components/mobile/admin/elementUpdateHtml'
import elementNewHtml from '../../components/mobile/admin/elementNewHtml'
import elementNewLesson from '../../components/mobile/admin/elementNewLesson'
import updateUser from '../../components/mobile/admin/userUpdate'
import newListOfValue from '../../components/mobile/admin/newListOfValue'
import performanceSales from '../../components/mobile/admin/performanceSales'
import search from '../../components/mobile/search/search'
import myCustomer from './components/pocustomer/myCustomer'
import lessonDetails from './components/pocustomer/lessonDetails'
import lessonFeedback from './components/pocustomer/lessonFeedback'
import newSignedLesson from './components/customer/newSignedLesson'
import newContract from './components/customer/newContract'
import updateSignedLesson from './components/customer/updateSignedLesson'
import updateContract from './components/customer/updateContract'
import studentReport from './components/public/studentReport'
import activity from './components/activity/activity'
import activityDetails from './components/activity/activityDetails'
import newActivity from './components/activity/newActivity'
import updateActivity from './components/activity/updateActivity'
import renewActivity from './components/activity/renewActivity'
import imgCrop from '../../components/mobile/common/imgCrop'

// noinspection JSAnnotator
export default new VueRouter({
  routes: [
    { path: '/', name: 'home', component: home },
	  { path: '/search', name: 'search', component: search },
    { path: '/home', component: home },
	  { path: '/calendar', name: 'calendar', component: calendar },
	  { path: '/assistHome', name: 'assistHome', component: assistHome },
    { path: '/customer', name: 'customer', component: customer },
    { path: '/customerDetails', name: 'customerDetails', component: customerDetails },
    { path: '/customerDetailsHome', component: customerDetailsHome },
	  { path: '/customerDetailsTracing', name: 'customerDetailsTracing', component: customerDetailsTracing },
	  { path: '/customerExTableDetails', name: 'customerExTableDetails', component: customerExTableDetails },
	  { path: '/newCustomerExDetails', name: 'newCustomerExDetails', component: newCustomerExDetails },
	  { path: '/updateCustomerExDetails', name: 'updateCustomerExDetails', component: updateCustomerExDetails },
    { path: '/newCustomer', name: 'newCustomer', component: newCustomer },
	  { path: '/updateCustomer', name: 'updateCustomer', component: updateCustomer },
	  { path: '/discovery', name: 'discovery', component: discovery},
	  { path: '/salesRank', name: 'salesRank', component: salesRank},
	  { path: '/userListForBatch', name: 'userListForBatch', component: userListForBatch},
    { path: '/mine', component: mine},
	  { path: '/lessonTable', name: 'lessonTable', component: lessonTable},
	  { path: '/poStudentStatus', name: 'poStudentStatus', component: poStudentStatus},
	  { path: '/poCustomerStatus', name: 'poCustomerStatus', component: poCustomerStatus},
	  { path: '/poMemberStatusList', name: 'poMemberStatusList', component: poMemberStatusList},
	  { path: '/marketingList', name: 'marketingList', component: marketingList},
	  { path: '/memberStatus', name: 'memberStatus', component: memberStatus},
	  { path: '/sysManage', component: sysManage},
	  { path: '/AIManage',  name: 'AIManage', component: AIManage},
	  { path: '/performanceManage', component: performanceManage},
	  { path: '/roleManage', name: 'roleManage', component: roleManage},
	  { path: '/dataMarketingManage', name: 'dataMarketingManage', component: dataMarketingManage},
	  { path: '/dataMemberManage', name: 'dataMemberManage', component: dataMemberManage},
	  { path: '/dataManage', name: 'dataManage', component: dataManage},
	  { path: '/userManage', name: 'userManage', component: userManage},
	  { path: '/elementManage', name: 'elementManage', component: elementManage},
	  { path: '/elementManageHtml', name: 'elementManageHtml', component: elementManageHtml},
	  { path: '/elementManageMul', name: 'elementManageMul', component: elementManageMul},
	  { path: '/lessonManage', name: 'lessonManage', component: lessonManage},
	  { path: '/selfManage', name: 'selfManage', component: selfManage},
	  { path: '/selfUpdate', name: 'selfUpdate', component: selfUpdate},
	  { path: '/selfPwdChange', name: 'selfPwdChange', component: selfPwdChange},
	  { path: '/listOfValueManage', name: 'listOfValueManage', component: listOfValueManage},
	  { path: '/roleNew', name: 'roleNew', component: roleNew},
	  { path: '/userNew', name: 'userNew', component: userNew},
	  { path: '/elementNew', name: 'elementNew', component: elementNew},
	  { path: '/elementUpdate', name: 'elementUpdate', component: elementUpdate},
	  { path: '/elementUpdateHtml', name: 'elementUpdateHtml', component: elementUpdateHtml},
	  { path: '/elementNewHtml', name: 'elementNewHtml', component: elementNewHtml},
	  { path: '/elementNewLesson', name: 'elementNewLesson', component: elementNewLesson},
	  { path: '/updateUser', name: 'updateUser', component: updateUser},
	  { path: '/newListOfValue', name: 'newListOfValue', component: newListOfValue},
	  { path: '/performanceSales/:id', name: 'performanceSales', component: performanceSales},
	  { path: '/myCustomer', name: 'myCustomer', component: myCustomer},
	  { path: '/lessonDetails/:id', name: 'lessonDetails', component: lessonDetails},
	  { path: '/lessonFeedback', name: 'lessonFeedback', component: lessonFeedback},
	  { path: '/newSignedLesson', name: 'newSignedLesson', component: newSignedLesson},
	  { path: '/newContract', name: 'newContract', component: newContract},
	  { path: '/updateSignedLesson', name: 'updateSignedLesson', component: updateSignedLesson},
	  { path: '/updateContract', name: 'updateContract', component: updateContract},
	  { path: '/studentReport', name: 'studentReport', component: studentReport},
	  { path: '/activity', name: 'activity', component: activity},
	  { path: '/activityDetails', name: 'activityDetails', component: activityDetails},
	  { path: '/newActivity', name: 'newActivity', component: newActivity},
	  { path: '/updateActivity', name: 'updateActivity', component: updateActivity},
	  { path: '/renewActivity', name: 'renewActivity', component: renewActivity},
	  { path: '/imgCrop', name: 'imgCrop', component: imgCrop}
  ]
})
